import request from "@/utils/request";

export function modelSearch(name) {
    return request.post(`/modelEntity/modelSearch?name=${name}`);
}

export function modelListPage(page, pageSize) {
    return request.post(`/modelEntity/modelListPage?page=${page}&pageSize=${pageSize}`);
}

export function modelId(id) {
    return request.post(`/modelEntity/modelId?id=${id}`);
}

export function modelEditor(params) {
    return request.post(`/modelEntity/modelEditor`, params);
}

export function modelDelete(id) {
    return request.post(`/modelEntity/modelDelete?id=${id}`);
}

export function modelAppend(params) {
    return request.post(`/modelEntity/modelAppend`, params);
}

export function modelList() {
    return request.get(`/modelEntity/modelList`);
}

